package com.fortune.dto.in.returnDeposit;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import java.math.BigDecimal;

public class AddReturnDepositDto {
    @NotBlank(message="商品id不能为空")
    @ApiModelProperty(example="商品id")
    private String productId;
    @Min(value=1,message="空箱数量不能小于1")
    @ApiModelProperty(example="空箱数量")
    private int productCount;
    @ApiModelProperty(example="押金金额")
    private BigDecimal depositPrice;
    @ApiModelProperty(required=true, example="序号")
    private int orderNum;
    @ApiModelProperty(example = "厂商id")
    private String mid;

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public int getProductCount() {
        return productCount;
    }

    public void setProductCount(int productCount) {
        this.productCount = productCount;
    }

    public BigDecimal getDepositPrice() {
        return depositPrice;
    }

    public void setDepositPrice(BigDecimal depositPrice) {
        this.depositPrice = depositPrice;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    @Override
    public String toString() {
        return "AddReturnDepositDto{" +
                "productId='" + productId + '\'' +
                ", productCount=" + productCount +
                ", depositPrice=" + depositPrice +
                ", orderNum=" + orderNum +
                ", mid='" + mid + '\'' +
                '}';
    }
}
